package club.zhangliyuanblog.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author liyuan.zhang
 * @date 2021/2/18 22:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)
@Builder
@ApiModel("用户实体")
public class User {
    @ApiModelProperty("用户ID")
    private String id;

    @ApiModelProperty("用户姓名")
    private String name;

    @ApiModelProperty("用户生日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @ApiModelProperty("用户地址")
    private String address;

    @ApiModelProperty("用户性别")
    private String sex;
}
